package com.macrohard.mapper.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName information
 */
@TableName(value ="information")
public class Information implements Serializable {
    /**
     * 
     */
    @TableId(value = "InformationID", type = IdType.AUTO)
    private Integer informationid;

    /**
     * 
     */
    @TableField(value = "InformationContent")
    private String informationcontent;

    /**
     * 
     */
    @TableField(value = "InformationImage")
    private String informationimage;

    /**
     * 
     */
    @TableField(value = "InformationCreateTime")
    private String informationcreatetime;

    /**
     * 
     */
    @TableField(value = "title")
    private String title;

    /**
     * 
     */
    @TableField(value = "introduction")
    private String introduction;

    /**
     * 
     */
    @TableField(value = "banner")
    private Integer banner;

    /**
     * 
     */
    @TableField(value = "type")
    private String type;

    /**
     * 
     */
    @TableField(value = "statu")
    private Integer statu;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getInformationid() {
        return informationid;
    }

    /**
     * 
     */
    public void setInformationid(Integer informationid) {
        this.informationid = informationid;
    }

    /**
     * 
     */
    public String getInformationcontent() {
        return informationcontent;
    }

    /**
     * 
     */
    public void setInformationcontent(String informationcontent) {
        this.informationcontent = informationcontent;
    }

    /**
     * 
     */
    public String getInformationimage() {
        return informationimage;
    }

    /**
     * 
     */
    public void setInformationimage(String informationimage) {
        this.informationimage = informationimage;
    }

    /**
     * 
     */
    public String getInformationcreatetime() {
        return informationcreatetime;
    }

    /**
     * 
     */
    public void setInformationcreatetime(String informationcreatetime) {
        this.informationcreatetime = informationcreatetime;
    }

    /**
     * 
     */
    public String getTitle() {
        return title;
    }

    /**
     * 
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 
     */
    public String getIntroduction() {
        return introduction;
    }

    /**
     * 
     */
    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    /**
     * 
     */
    public Integer getBanner() {
        return banner;
    }

    /**
     * 
     */
    public void setBanner(Integer banner) {
        this.banner = banner;
    }

    /**
     * 
     */
    public String getType() {
        return type;
    }

    /**
     * 
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 
     */
    public Integer getStatu() {
        return statu;
    }

    /**
     * 
     */
    public void setStatu(Integer statu) {
        this.statu = statu;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Information other = (Information) that;
        return (this.getInformationid() == null ? other.getInformationid() == null : this.getInformationid().equals(other.getInformationid()))
            && (this.getInformationcontent() == null ? other.getInformationcontent() == null : this.getInformationcontent().equals(other.getInformationcontent()))
            && (this.getInformationimage() == null ? other.getInformationimage() == null : this.getInformationimage().equals(other.getInformationimage()))
            && (this.getInformationcreatetime() == null ? other.getInformationcreatetime() == null : this.getInformationcreatetime().equals(other.getInformationcreatetime()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getIntroduction() == null ? other.getIntroduction() == null : this.getIntroduction().equals(other.getIntroduction()))
            && (this.getBanner() == null ? other.getBanner() == null : this.getBanner().equals(other.getBanner()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getStatu() == null ? other.getStatu() == null : this.getStatu().equals(other.getStatu()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getInformationid() == null) ? 0 : getInformationid().hashCode());
        result = prime * result + ((getInformationcontent() == null) ? 0 : getInformationcontent().hashCode());
        result = prime * result + ((getInformationimage() == null) ? 0 : getInformationimage().hashCode());
        result = prime * result + ((getInformationcreatetime() == null) ? 0 : getInformationcreatetime().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getIntroduction() == null) ? 0 : getIntroduction().hashCode());
        result = prime * result + ((getBanner() == null) ? 0 : getBanner().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getStatu() == null) ? 0 : getStatu().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", informationid=").append(informationid);
        sb.append(", informationcontent=").append(informationcontent);
        sb.append(", informationimage=").append(informationimage);
        sb.append(", informationcreatetime=").append(informationcreatetime);
        sb.append(", title=").append(title);
        sb.append(", introduction=").append(introduction);
        sb.append(", banner=").append(banner);
        sb.append(", type=").append(type);
        sb.append(", statu=").append(statu);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}